package com.sinosoft.vaccinetoai.server.business.chatrecord.getchatrecordlist.controller;

import javax.validation.Valid;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import com.sinosoft.vaccinetoai.server.business.chatrecord.getchatrecordlist.io.GetChatRecordListIO;
import com.sinosoft.vaccinetoai.server.business.chatrecord.getchatrecordlist.vo.GetChatRecordListVO;
import com.sinosoft.vaccinetoai.server.business.chatrecord.getchatrecordlist.service.IGetChatRecordListService;

/**
 * @ClassName: GetChatRecordListController
 * @ClassNameExplain: 
 * @Description: 用户聊天记录列表查询接口
 * @author xiazhihao
 * @date 2023年12月18日 21:52
 */
@RestController("GetChatRecordListController")
@RequestMapping("/chatRecord")
public class GetChatRecordListController {
	
	@Autowired
	@Qualifier("GetChatRecordListService")
	IGetChatRecordListService getChatRecordListService;
	
	/**
	 * @Title: getChatRecordList
	 * @TitleExplain: 
	 * @Description: 用户聊天记录列表查询接口方法
	 * @param getChatRecordListIO 入参
	 * @return GetChatRecordListVO 返参
	 * @version 1.0.3
	 * @author xiazhihao
	 */
	@PostMapping("/list")
	public GetChatRecordListVO getChatRecordList(@Valid @RequestBody GetChatRecordListIO getChatRecordListIO) throws Exception {
		return getChatRecordListService.getChatRecordList(getChatRecordListIO);
	}
	
}
